package icu.thatyear.main.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author Cjy
 * @since 2024-12-06
 */
@Getter
@Setter
@TableName("tz_shop_detail")
@Schema(name = "TzShopDetail", description = "")
public class TzShopDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "店铺id")
    @TableId(value = "shop_id", type = IdType.AUTO)
    private Long shopId;

    @Schema(description = "店铺名称(数字、中文，英文(可混合，不可有特殊字符)，可修改)、不唯一")
    @TableField("shop_name")
    private String shopName;

    @Schema(description = "店长用户id")
    @TableField("user_id")
    private String userId;

    @Schema(description = "店铺类型")
    @TableField("shop_type")
    private Byte shopType;

    @Schema(description = "店铺简介(可修改)")
    @TableField("intro")
    private String intro;

    @Schema(description = "店铺公告(可修改)")
    @TableField("shop_notice")
    private String shopNotice;

    @Schema(description = "店铺行业(餐饮、生鲜果蔬、鲜花等)")
    @TableField("shop_industry")
    private Byte shopIndustry;

    @Schema(description = "店长")
    @TableField("shop_owner")
    private String shopOwner;

    @Schema(description = "店铺绑定的手机(登录账号：唯一)")
    @TableField("mobile")
    private String mobile;

    @Schema(description = "店铺联系电话")
    @TableField("tel")
    private String tel;

    @Schema(description = "店铺所在纬度(可修改)")
    @TableField("shop_lat")
    private String shopLat;

    @Schema(description = "店铺所在经度(可修改)")
    @TableField("shop_lng")
    private String shopLng;

    @Schema(description = "店铺详细地址")
    @TableField("shop_address")
    private String shopAddress;

    @Schema(description = "店铺所在省份（描述）")
    @TableField("province")
    private String province;

    @Schema(description = "店铺所在城市（描述）")
    @TableField("city")
    private String city;

    @Schema(description = "店铺所在区域（描述）")
    @TableField("area")
    private String area;

    @Schema(description = "店铺省市区代码，用于回显")
    @TableField("pca_code")
    private String pcaCode;

    @Schema(description = "店铺logo(可修改)")
    @TableField("shop_logo")
    private String shopLogo;

    @Schema(description = "店铺相册")
    @TableField("shop_photos")
    private String shopPhotos;

    @Schema(description = "每天营业时间段(可修改)")
    @TableField("open_time")
    private String openTime;

    @Schema(description = "店铺状态(-1:未开通 0: 停业中 1:营业中)，可修改")
    @TableField("shop_status")
    private Byte shopStatus;

    @Schema(description = "0:商家承担运费; 1:买家承担运费")
    @TableField("transport_type")
    private Byte transportType;

    @Schema(description = "固定运费")
    @TableField("fixed_freight")
    private BigDecimal fixedFreight;

    @Schema(description = "满X包邮")
    @TableField("full_free_shipping")
    private BigDecimal fullFreeShipping;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @Schema(description = "分销开关(0:开启 1:关闭)")
    @TableField("is_distribution")
    private Byte isDistribution;
}
